DX11 GET CAMERA DEPTH STENCIL BUFFER

Retrieves the depth-stencil buffer (as an image) for the given camera.
The depth-stencil buffer is of the DXGI_FORMAT_D24_UNORM_S8_UINT format and can be set as a texture to objects / limbs.
Note that you will have to delete the returned image when you are done with it; it will not be automatically deleted when the camera is.

  Syntax
Return Dword = DX11 GET CAMERA DEPTH STENCIL BUFFER(camera)
  Parameters
camera
Dword
The camera to get the depth-stencil buffer of.

  Returns

The image that the camera uses as its depth stencil buffer, or 0 if there is no such buffer.

  See also

CAMERA Functions Menu
DX11 Function Categories